export function createReducer({state: initState, reducer}) {
  return (state = initState, action) => {
    return reducer.hasOwnProperty(action.type) ? reducer[action.type](state, action) : state
  }
}